package com.wiki.gds.user.facade.sys.hystrix;

import com.wiki.gds.base.common.dto.ResponseDto;
import com.wiki.gds.base.common.exception.BizExceptionEnum;
import com.wiki.gds.base.common.utils.ResponseDtoFactory;
import com.wiki.gds.user.facade.sys.api.UserApi;
import com.wiki.gds.user.facade.sys.model.User;
import feign.hystrix.FallbackFactory;
import org.beetl.sql.core.engine.PageQuery;
import org.springframework.stereotype.Component;


@Component
public class UserApiFallbackFactory implements FallbackFactory<UserApi> {

    public UserApi create(Throwable throwable) {
        return new UserApi() {
            @Override
            public User getBySelf(User user) {
                return null;
            }

            @Override
            public String TestAAA() {
                return null;
            }

            @Override
            public ResponseDto<User> insert(User user) {
                return null;
            }
        };
    }
}

